package com.ruoyi.project.purchase.mapper;

import java.util.List;
import com.ruoyi.project.purchase.domain.RyQuality;

/**
 * 采购质检Mapper接口
 *
 * @author you
 * @date 2022-09-25
 */
public interface RyQualityMapper
{
    /**
     * 查询采购质检
     *
     * @param id 采购质检主键
     * @return 采购质检
     */
    public RyQuality selectRyQualityById(Long id);

    /**
     * 查询采购质检列表
     *
     * @param ryQuality 采购质检
     * @return 采购质检集合
     */
    public List<RyQuality> selectRyQualityList(RyQuality ryQuality);

    /**
     * 根据订单id查询关联采购单
     * @param orderId
     * @return
     */
    public int selectCountByOrderId(Long orderId);

    /**
     * 新增采购质检
     *
     * @param ryQuality 采购质检
     * @return 结果
     */
    public int insertRyQuality(RyQuality ryQuality);

    /**
     * 修改采购质检
     *
     * @param ryQuality 采购质检
     * @return 结果
     */
    public int updateRyQuality(RyQuality ryQuality);

    /**
     * 删除采购质检
     *
     * @param id 采购质检主键
     * @return 结果
     */
    public int deleteRyQualityById(Long id);

    /**
     * 批量删除采购质检
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRyQualityByIds(Long[] ids);

}
